public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
* [Bug libgcj/19512] New: Optional JNI error checking @ 2005-01-18 20:50 tromey at gcc dot gnu dot org 2005-01-18 21:52 ` [Bug libgcj/19512] " mark at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2005-01-18 20:50 UTC (permalink / raw) To: java-prs It would be helpful to have a special error-checking JNI implementation. One thing we could check is the constraint that it is invalid to make a JNI call if there is an exception pending. Another thing we could check (a la Sable) is that a call doesn't use more than 16 local references (without asking for more) -- Summary: Optional JNI error checking Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tromey at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19512 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/19512] Optional JNI error checking 2005-01-18 20:50 [Bug libgcj/19512] New: Optional JNI error checking tromey at gcc dot gnu dot org @ 2005-01-18 21:52 ` mark at gcc dot gnu dot org 2005-01-18 23:50 ` pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: mark at gcc dot gnu dot org @ 2005-01-18 21:52 UTC (permalink / raw) To: java-prs ------- Additional Comments From mark at gcc dot gnu dot org 2005-01-18 21:51 ------- Some other things that could be checked: - Using wrongly formatted JNI descriptor strings in Get[Static](Field|Method)ID() (note '.' is not allowed, must be '/'). - Using a JNIEnv in another thread. - LocalReferences that are used after a native method returns. - Leaking strings/chars gotten from GetString(UTF)Chars (or JCL_jstring_to_cstring in libclasspath) - Using non-existing Field or Method ids -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19512 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/19512] Optional JNI error checking 2005-01-18 20:50 [Bug libgcj/19512] New: Optional JNI error checking tromey at gcc dot gnu dot org 2005-01-18 21:52 ` [Bug libgcj/19512] " mark at gcc dot gnu dot org @ 2005-01-18 23:50 ` pinskia at gcc dot gnu dot org 2005-01-22 11:53 ` mark at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-01-18 23:50 UTC (permalink / raw) To: java-prs -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-01-18 23:50:42 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19512 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/19512] Optional JNI error checking 2005-01-18 20:50 [Bug libgcj/19512] New: Optional JNI error checking tromey at gcc dot gnu dot org 2005-01-18 21:52 ` [Bug libgcj/19512] " mark at gcc dot gnu dot org 2005-01-18 23:50 ` pinskia at gcc dot gnu dot org @ 2005-01-22 11:53 ` mark at gcc dot gnu dot org 2005-09-04 11:40 ` mark at gcc dot gnu dot org 2005-09-04 12:21 ` mark at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: mark at gcc dot gnu dot org @ 2005-01-22 11:53 UTC (permalink / raw) To: java-prs ------- Additional Comments From mark at gcc dot gnu dot org 2005-01-22 11:51 ------- Working on a patch. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |mark at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19512 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/19512] Optional JNI error checking 2005-01-18 20:50 [Bug libgcj/19512] New: Optional JNI error checking tromey at gcc dot gnu dot org ` (2 preceding siblings ...) 2005-01-22 11:53 ` mark at gcc dot gnu dot org @ 2005-09-04 11:40 ` mark at gcc dot gnu dot org 2005-09-04 12:21 ` mark at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: mark at gcc dot gnu dot org @ 2005-09-04 11:40 UTC (permalink / raw) To: java-prs ------- Additional Comments From mark at gcc dot gnu dot org 2005-09-04 11:40 ------- There is a proposed patch (from January): http://gcc.gnu.org/ml/java-patches/2005-q1/msg00162.html But I have not had time to forward port it to the lasted CVS head or do any performance tests (Bryce suggested that the tests should always be on if it doesn't impact performance heavily). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19512 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/19512] Optional JNI error checking 2005-01-18 20:50 [Bug libgcj/19512] New: Optional JNI error checking tromey at gcc dot gnu dot org ` (3 preceding siblings ...) 2005-09-04 11:40 ` mark at gcc dot gnu dot org @ 2005-09-04 12:21 ` mark at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: mark at gcc dot gnu dot org @ 2005-09-04 12:21 UTC (permalink / raw) To: java-prs ------- Additional Comments From mark at gcc dot gnu dot org 2005-09-04 12:20 ------- *** Bug 16281 has been marked as a duplicate of this bug. *** -- What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19512 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-09-04 12:21 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-01-18 20:50 [Bug libgcj/19512] New: Optional JNI error checking tromey at gcc dot gnu dot org 2005-01-18 21:52 ` [Bug libgcj/19512] " mark at gcc dot gnu dot org 2005-01-18 23:50 ` pinskia at gcc dot gnu dot org 2005-01-22 11:53 ` mark at gcc dot gnu dot org 2005-09-04 11:40 ` mark at gcc dot gnu dot org 2005-09-04 12:21 ` mark at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).