< prev index next >

src/hotspot/share/classfile/classListParser.hpp

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2020, 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -65,10 +65,13 @@
   int                 _super;
   GrowableArray<int>* _interfaces;
   bool                _interfaces_specified;
   const char*         _source;
 
+  // current line is output from TRACE_RESOLVE
+  bool                _lambda_format;
+
   bool parse_int_option(const char* option_name, int* value);
   InstanceKlass* load_class_from_source(Symbol* class_name, TRAPS);
   ID2KlassTable *table() {
     return &_id2klass_table;
   }

@@ -120,10 +123,18 @@
 
   Klass* load_current_class(TRAPS);
 
   bool is_loading_from_source();
 
+  bool is_lambda_format() {
+    return _lambda_format;
+  }
+  
+  // return the current line, duped
+  char* current_line() {
+    return os::strdup((const char*)_line, mtInternal);
+  }
   // Look up the super or interface of the current class being loaded
   // (in this->load_current_class()).
   InstanceKlass* lookup_super_for_current_class(Symbol* super_name);
   InstanceKlass* lookup_interface_for_current_class(Symbol* interface_name);
 };
< prev index next >