comparison src/share/tools/hsdis/hsdis-demo.c @ 9050:97d605522fcb

8027434: "-XX:OnOutOfMemoryError" uses fork instead of vfork Summary: On Linux, use vfork in case of an OOM. Reviewed-by: dholmes, iklam
author phh
date Mon, 25 Feb 2019 21:38:45 +0000
parents 9a18c71dbd25
children
comparison
equal deleted inserted replaced
10:5d54fc524330 11:3490fd8698c6
86 if (!greeted) 86 if (!greeted)
87 greet("world"); 87 greet("world");
88 printf("...And now for something completely different:\n"); 88 printf("...And now for something completely different:\n");
89 void *start = (void*) &main; 89 void *start = (void*) &main;
90 void *end = (void*) &end_of_file; 90 void *end = (void*) &end_of_file;
91 #if defined(__ia64) || defined(__powerpc__) 91 #if defined(__ia64) || (defined(__powerpc__) && !defined(ABI_ELFv2))
92 /* On IA64 and PPC function pointers are pointers to function descriptors */ 92 /* On IA64 and PPC function pointers are pointers to function descriptors */
93 start = *((void**)start); 93 start = *((void**)start);
94 end = *((void**)end); 94 end = *((void**)end);
95 #endif 95 #endif
96 disassemble(start, (end > start) ? end : start + 64); 96 disassemble(start, (end > start) ? end : start + 64);