Re: Cache which java classes are in a jar when opening jar the first time during classloading

2015-08-30 Thread Jonathan Yu
Hi Adrian, It's possible for jar files to be modified while the JVM is running - is there some facility for detecting that an archive was modified and thus invalidating the cache? Also, I wonder how class data sharing might interact with this, though I'll admit that I don't know much about HotSpo

Re: Java language and API improvements

2015-12-04 Thread Jonathan Yu
Hi Alberto, It might be easier to discuss these proposals by separating them into individual emails, to help keep things focussed. I'm not even sure if this is the right list for Java language discussions. I'm not an expert but just sharing some quick thoughts... On Fri, Dec 4, 2015 at 10:22 AM

Re: String.indexOf optimization

2015-01-05 Thread Jonathan Yu
Hi, Sharing in case you haven't seen it... Aleksey Shipilëv has a talk about String optimizations, which discusses these questions and specifically the Boyer-Moore algorithm. http://shipilev.net/talks/joker-Oct2014-string-catechism.pdf Page 85 talks about the intrinsification of indexOf and comp

Re: How to close a Process and having shutdown hooks called ?

2014-03-10 Thread Jonathan Yu
The referenced question discusses how to handle the *current* process receiving certain signals. The original question was how to portably send signals to *other* processes via the Process abstraction. The comment was that terminate process sends a kill 9 signal which cannot be caught by the targe

Re: Set the effective user ID of the Java process.

2017-09-11 Thread Jonathan Yu
On Mon, Sep 11, 2017 at 5:31 AM, Dmitrii Kashin wrote: > > I'd like to add to the conversation that this thread was started because > of the argue here[1] (russian). > > The main point of the argue was dropping privileges from root to some > user after the program performed all the needed actions

Re: Classes on the stack trace (was: getElementClass/StackTraceElement, was: @CallerSensitive public API, was: sun.reflect.Reflection.getCallerClass)

2013-07-30 Thread Jonathan Yu
On Tue, Jul 30, 2013 at 8:25 AM, Nick Williams < nicholas+open...@nicholaswilliams.net> wrote: > 42 MILLION uses of Reflection.getCallerClass(int) on Ohloh!?!? Holy crap... > Considering that the Ohloh search results page also bolds occurrences of "Reflection", "class" and "get" for that search [