Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception chaining for com.sun.jna.Structure #290

Merged
merged 2 commits into from
Apr 10, 2014
Merged

Exception chaining for com.sun.jna.Structure #290

merged 2 commits into from
Apr 10, 2014

Conversation

ebourg
Copy link
Contributor

@ebourg ebourg commented Nov 15, 2013

Hi,

I'd like to suggest using exception chaining in com.sun.jna.Structure to improve the stacktraces produced when an error occurs. IllegalArgumentException(String, Throwable) was introduced in Java 5, so this change is compatible with the minimum version of Java currently supported by JNA.

Thank you

@dblock
Copy link
Member

dblock commented Dec 11, 2013

I think this is a good idea, @twall should comment/merge.

@twall
Copy link
Contributor

twall commented Dec 17, 2013

LGTM. Feel free to merge after test.

On Dec 11, 2013, at 9:00 AM, Daniel Doubrovkine (dB.) notifications@github.com wrote:

I think this is a good idea, @twall should comment/merge.


Reply to this email directly or view it on GitHub.

@twall
Copy link
Contributor

twall commented Apr 9, 2014

@ebourg Please add a CHANGES.md entry and this is good to merge.

@ebourg
Copy link
Contributor Author

ebourg commented Apr 9, 2014

Thank you, I rebased the modification on the current HEAD and added an entry in CHANGES.md

twall added a commit that referenced this pull request Apr 10, 2014
Exception chaining for com.sun.jna.Structure
@twall twall merged commit 323a913 into java-native-access:master Apr 10, 2014
mstyura pushed a commit to mstyura/jna that referenced this pull request Sep 9, 2024
…cess#290)

Motivation:

We sometimes saw failures as we were not able to reserve enough memory to unpack the rust toolchain on windows.

Like:

```
info: using up to 500.0 MiB of RAM to unpack components
info: installing component 'rustfmt'
info: installing component 'cargo'
info: installing component 'rust-std'
info: installing component 'rustc'
memory allocation of 16777216 bytes failed
Error: The process 'C:\Rust\.cargo\bin\rustup.exe' failed with exit code 3221226505
```

Modifications:

Set env to limit to 128MiB

Result:

More stable builds on windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants