Review request 8008310 - Some adjustments needed to, minimal VM warnings and errors for unsupported command line options (original) (raw)

JOSEPH PROVINO joseph.provino at oracle.com
Mon Mar 4 07:11:45 PST 2013


latest webrev is here: http://cr.openjdk.java.net/~jprovino/8008310/webrev.04

joe

On 3/1/2013 9:31 AM, JOSEPH PROVINO wrote:

On 3/1/2013 1:34 AM, David Holmes wrote: On 1/03/2013 4:54 AM, JOSEPH PROVINO wrote:

Latest webrev is here: http://cr.openjdk.java.net/~jprovino/8008310/webrev.03

One lingering glitch: 3273 if (DumpSharedSpaces || RequireSharedSpaces) { 3274 jiofprintf(defaultStream::errorstream(), 3275 "Shared spaces are not supported in this VM\n"); 3276 return JNIERR; 3277 } 3278 if (UseSharedSpaces || PrintSharedSpaces) { 3279 warning("Shared spaces are not supported in this VM"); 3280 } 3281 FLAGSETDEFAULT(DumpSharedSpaces, false); 3282 FLAGSETDEFAULT(RequireSharedSpaces, false); 3283 FLAGSETDEFAULT(PrintSharedSpaces, false); The last three lines only need to be these two lines: FLAGSETDEFAULT(UseSharedSpaces, false); FLAGSETDEFAULT(PrintSharedSpaces, false); and they can move inside the if. Okay, I'll make those changes. joe

DumpSharedSpaces and RequireSharedSpaces must already be false else we exit at #3276. David ----- joe

On 2/27/2013 11:36 PM, David Holmes wrote: On 28/02/2013 3:41 AM, JOSEPH PROVINO wrote:

On 2/26/2013 8:45 PM, David Holmes wrote: On 27/02/2013 2:59 AM, JOSEPH PROVINO wrote:

On 2/25/2013 8:43 PM, David Holmes wrote: On 26/02/2013 1:58 AM, JOSEPH PROVINO wrote: Latest webrev is here: http://cr.openjdk.java.net/~jprovino/8008310/webrev.02

- excluded filemap.cpp if CDS is 0. - confined changes for CDS to filemap.hpp. These changes are good - thanks. For arguments.cpp: 1076 FLAGSETDEFAULT(RequireSharedSpaces, false); If we execute this line then the flag is already false. Also, as discussed in email -Xshare:dump should probably be an error not a warning, but note that if left as a warning then this code: 2518 // -Xshare:dump 2519 } else if (matchoption(option, "-Xshare:dump", &tail)) { 2520 FLAGSETCMDLINE(bool, DumpSharedSpaces, true); 2521 setmodeflags(int); // Prevent compilation, which creates objects would also force us into intepreter mode, so you would still need to check INCLUDECDS here. If DumpSharedSpaces is changed to return JNIERR do I still need a conditional here? ?? You would need the conditional to decide to return JNIERR. I meant do I need #if INCLUDECDS around setmodeflags(int); So I was assuming this was the only place you needed to check this, but you have to check for -XX:+DumpSharedSpaces as well. So if you left the -Xshare:dump code alone and later checked for DumpSharedSpaces and returned with JNIERR then it would not matter that the switch to interpreter mode had already been made. David joe David joe

David ----- thanks. joe



More information about the hotspot-dev mailing list