src/share/vm/compiler/compileBroker.cpp

changeset 9690
61d955db2a5b
parent 9327
f96fcd9e1e1b
child 9691
556282e43cc1
     1.1 --- a/src/share/vm/compiler/compileBroker.cpp	Mon Jun 03 16:14:54 2019 +0100
     1.2 +++ b/src/share/vm/compiler/compileBroker.cpp	Wed Jun 05 03:07:31 2019 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -751,8 +751,10 @@
    1.11      No_Safepoint_Verifier nsv;
    1.12      task = CompilationPolicy::policy()->select_task(this);
    1.13    }
    1.14 -  remove(task);
    1.15 -  purge_stale_tasks(); // may temporarily release MCQ lock
    1.16 +  if (task != NULL) {
    1.17 +    remove(task);
    1.18 +    purge_stale_tasks(); // may temporarily release MCQ lock
    1.19 +  }
    1.20    return task;
    1.21  }
    1.22  

mercurial