harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky" <gshiman...@gmail.com>
Subject Re: [jira] Created: (HARMONY-2544) [drlvm][jvmti] Check of settable system properties
Date Fri, 15 Dec 2006 12:25:05 GMT
I could argue with Pavel that we have to have read only system properties
which cannot be set from JVMTI. The specification doesn't say that it is
necessary to have read only properties, it just mentions that
SetSystemProperty may return an error
JVMTI_ERROR_NOT_AVAILABLE<http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/jvmti.html#JVMTI_ERROR_NOT_AVAILABLE>if
a property is not writable. But which properties are writable or not
is
not specified.

>From the patch it seems Sun doesn't allow JVMTI to set java.vm.vendor,
java.vm.version, java.vm.name and java.vm.info. But I don't really like to
disallow things for no apparent reason. So my question is, should be have
read only properties like Sun? What do you think?

2006/12/8, Pavel Rebriy (JIRA) <jira@apache.org>:
>
> [drlvm][jvmti] Check of settable system properties
> --------------------------------------------------
>
>                  Key: HARMONY-2544
>                  URL: http://issues.apache.org/jira/browse/HARMONY-2544
>              Project: Harmony
>           Issue Type: Bug
>           Components: DRLVM
>             Reporter: Pavel Rebriy
>
>
> According to Java Specification [1] it is necessary to have some read only
> system properties.
>
> Here is a test created on reference VM behavior to check if system
> property is settable or not.
>
> [1]
> http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/jvmti.html#SetSystemProperty
>
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>


-- 
Gregory Shimansky, Intel Middleware Products Division

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message