aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-05-03 12:14:08 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-05-03 12:14:08 +0200
commit23cd840a8f600eff92c7c7ac2c8e0d98c5b55454 (patch)
tree10a700ddbc39680cfa698fa4dfbe320bd6c5ba37
parente7f15eeaaa60833cb69f6f9c9b8de53b6b254cfd (diff)
parent43416d57174d93660aec1620eeef0b05271b43e6 (diff)
downloadotp-23cd840a8f600eff92c7c7ac2c8e0d98c5b55454.tar.gz
otp-23cd840a8f600eff92c7c7ac2c8e0d98c5b55454.tar.bz2
otp-23cd840a8f600eff92c7c7ac2c8e0d98c5b55454.zip
Merge branch 'dotsimon/gc-info-crashdump/PR-1026/OTP-13541'
* dotsimon/gc-info-crashdump/PR-1026/OTP-13541: Print heap pointers for garbing processes during crashdump
-rw-r--r--erts/emulator/beam/break.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/erts/emulator/beam/break.c b/erts/emulator/beam/break.c
index 4f5e80f2e5..d02c6828f9 100644
--- a/erts/emulator/beam/break.c
+++ b/erts/emulator/beam/break.c
@@ -347,8 +347,11 @@ print_process_info(int to, void *to_arg, Process *p)
static void
print_garb_info(int to, void *to_arg, Process* p)
{
+#ifdef ERTS_SMP
/* ERTS_SMP: A scheduler is probably concurrently doing gc... */
-#ifndef ERTS_SMP
+ if (!ERTS_IS_CRASH_DUMPING)
+ return;
+#endif
erts_print(to, to_arg, "New heap start: %bpX\n", p->heap);
erts_print(to, to_arg, "New heap top: %bpX\n", p->htop);
erts_print(to, to_arg, "Stack top: %bpX\n", p->stop);
@@ -356,7 +359,6 @@ print_garb_info(int to, void *to_arg, Process* p)
erts_print(to, to_arg, "Old heap start: %bpX\n", OLD_HEAP(p));
erts_print(to, to_arg, "Old heap top: %bpX\n", OLD_HTOP(p));
erts_print(to, to_arg, "Old heap end: %bpX\n", OLD_HEND(p));
-#endif
}
void