--- a/src/hotspot/share/ci/ciConstant.cpp Thu Oct 17 20:27:44 2019 +0100
+++ b/src/hotspot/share/ci/ciConstant.cpp Thu Oct 17 20:53:35 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2019, 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
@@ -56,12 +56,12 @@
case T_DOUBLE:
tty->print("%lf", _value._double);
break;
- case T_OBJECT:
- case T_ARRAY:
- _value._object->print();
- break;
default:
- tty->print("ILLEGAL");
+ if (is_reference_type(basic_type())) {
+ _value._object->print();
+ } else {
+ tty->print("ILLEGAL");
+ }
break;
}
tty->print(">");