aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-04-08 15:03:17 +0200
committerSverker Eriksson <[email protected]>2014-04-08 15:03:17 +0200
commitfa7f3e7ec457f1143ed4a3db1aa9d7aed8005a57 (patch)
treea22297006a98fc42c546ff51861febb581949f6c
parentfa45816a0e46dd7863db2ae4ff90042eed1d570a (diff)
downloadotp-fa7f3e7ec457f1143ed4a3db1aa9d7aed8005a57.tar.gz
otp-fa7f3e7ec457f1143ed4a3db1aa9d7aed8005a57.tar.bz2
otp-fa7f3e7ec457f1143ed4a3db1aa9d7aed8005a57.zip
erts: Fix system_monitor(large_heap) for non-smp VM
No message for large_heap monitoring was ever sent on non-smp VM. Bug introduced in R16B.
-rw-r--r--erts/emulator/beam/erl_trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_trace.c b/erts/emulator/beam/erl_trace.c
index 305058ceff..ea5c850a30 100644
--- a/erts/emulator/beam/erl_trace.c
+++ b/erts/emulator/beam/erl_trace.c
@@ -1,7 +1,7 @@
/*
* %CopyrightBegin%
*
- * Copyright Ericsson AB 1999-2013. All Rights Reserved.
+ * Copyright Ericsson AB 1999-2014. All Rights Reserved.
*
* The contents of this file are subject to the Erlang Public License,
* Version 1.1, (the "License"); you may not use this file except in
@@ -2524,7 +2524,7 @@ monitor_large_heap(Process *p) {
#ifndef ERTS_SMP
ASSERT(is_internal_pid(system_monitor));
monitor_p = erts_proc_lookup(system_monitor);
- if (monitor_p || p == monitor_p) {
+ if (!monitor_p || p == monitor_p) {
return;
}
#endif