Mercurial > hg > openjdk > jdk9 > hotspot
changeset 9807:46122d93612d
8145328: SEGV in DirectivesStack::getMatchingDirective
Summary: Loop until enabled directive is found
Reviewed-by: kvn, twisti
author | neliasso |
---|---|
date | Mon, 21 Dec 2015 22:17:23 +0100 |
parents | 21689239c407 |
children | e8d76ba3faa1 |
files | src/share/vm/compiler/compilerDirectives.cpp |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/compiler/compilerDirectives.cpp Mon Dec 21 11:34:58 2015 +0100 +++ b/src/share/vm/compiler/compilerDirectives.cpp Mon Dec 21 22:17:23 2015 +0100 @@ -561,10 +561,11 @@ match = dir->_c1_store; break; } - } - if (match->EnableOption) { - // The directiveSet for this compile is also enabled -> success - break; + } else { + if (match->EnableOption) { + // The directiveSet for this compile is also enabled -> success + break; + } } } dir = dir->next();