--- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java Mon Apr 23 09:01:03 2018 -0700
+++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java Mon Apr 23 10:59:39 2018 -0500
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -136,7 +136,7 @@
private Boolean compressedOopsEnabled;
private Boolean compressedKlassPointersEnabled;
- // command line flags supplied to VM - see struct Flag in globals.hpp
+ // command line flags supplied to VM - see struct JVMFlag in jvmFlag.hpp
public static final class Flag {
private String type;
private String name;
@@ -905,7 +905,7 @@
private void readCommandLineFlags() {
// get command line flags
TypeDataBase db = getTypeDataBase();
- Type flagType = db.lookupType("Flag");
+ Type flagType = db.lookupType("JVMFlag");
int numFlags = (int) flagType.getCIntegerField("numFlags").getValue();
// NOTE: last flag contains null values.
commandLineFlags = new Flag[numFlags - 1];