Skip to content

Commit 8277d4f

Browse files
committed
HACK: Attempt
1 parent 12f8db6 commit 8277d4f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/hotspot/share/interpreter/bytecodeTracer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ void BytecodePrinter::print_bsm(int cp_index, outputStream* st) {
327327
st->print(" BSM: %s", ref_kind);
328328
print_field_or_method(constants()->method_handle_index_at(bsm), st);
329329
BSMAttributeEntry* bsme = constants()->bootstrap_methods_attribute_entry(cp_index);
330-
int argc = bsme->argument_count();;
330+
int argc = bsme->argument_count();
331331
st->print(" arguments[%d] = {", argc);
332332
if (argc > 0) {
333333
st->cr();

src/hotspot/share/utilities/debug.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
#include <stddef.h>
3333
#include <stdint.h>
3434

35+
#include <stdio.h>
36+
#include <unistd.h>
37+
#include <sys/types.h>
38+
3539
class oopDesc;
3640

3741
// ShowRegistersOnAssert support (for now Linux and Windows only)
@@ -150,6 +154,9 @@ class DebuggingContext {
150154
#define vmassert_with_file_and_line(p, file, line, ...) \
151155
do { \
152156
if (! VMASSERT_CHECK_PASSED(p)) { \
157+
printf("%ld%ld", (long)getpid(), (long)getppid()); \
158+
volatile int x = 1; \
159+
while (x) {} \
153160
TOUCH_ASSERT_POISON; \
154161
report_vm_error(file, line, "assert(" #p ") failed", __VA_ARGS__); \
155162
} \

0 commit comments

Comments
 (0)