This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Bryce> Casey,
Bryce> This looks good, but I don't think _Jv_RunMain is the right Bryce> place for this code. For one thing, it won't work when the Bryce> runtime is started by invocation, because _Jv_RunMain isn't Bryce> called.
I see. I think the security.manager property is most useful when
started from the command line, like via gij, which is why I thought
_Jv_RunMain, just before the FirstThread is created, was the best
place. It needn't be native; I just looked for the best place before
the main thread is created.
It might be that interpreting this property would be better built intoYeah, since it doesn't really depend on any VM-specific functionality, I think this is the way to go. Its also more maintainable and better style to have the setting of the field close to where the field is defined, rather than have to dig through the startup code to find it.
the class library. That way any VM that uses Classpath could take
advantage of this without modifying the VM itself.
I also wasn't sure about bootstrap order, and accessingDoing things early in startup does have the potential for hairy problems (co-dependent static initializers, etc), but I don't think doing it in Java code in this case is any worse than doing it in _Jv_RunMain, etc.
System.properties and possibly class loaders so early.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |