--- a/hotspot/src/share/vm/asm/assembler.hpp Wed Jun 29 18:04:04 2016 +0300
+++ b/hotspot/src/share/vm/asm/assembler.hpp Thu Jun 30 08:24:51 2016 +0200
@@ -337,6 +337,15 @@
//
// We must remember the code section (insts or stubs) in c1
// so we can reset to the proper section in end_a_const().
+ address int_constant(jint c) {
+ CodeSection* c1 = _code_section;
+ address ptr = start_a_const(sizeof(c), sizeof(c));
+ if (ptr != NULL) {
+ emit_int32(c);
+ end_a_const(c1);
+ }
+ return ptr;
+ }
address long_constant(jlong c) {
CodeSection* c1 = _code_section;
address ptr = start_a_const(sizeof(c), sizeof(c));