mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
7020403: Add AdvancedCompilationPolicy for tiered
This implements adaptive tiered compilation policy. Reviewed-by: kvn, never
This commit is contained in:
parent
d7802369bc
commit
2114527fec
6 changed files with 696 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -32,6 +32,7 @@
|
|||
#include "oops/methodOop.hpp"
|
||||
#include "oops/oop.inline.hpp"
|
||||
#include "prims/nativeLookup.hpp"
|
||||
#include "runtime/advancedThresholdPolicy.hpp"
|
||||
#include "runtime/compilationPolicy.hpp"
|
||||
#include "runtime/frame.hpp"
|
||||
#include "runtime/handles.inline.hpp"
|
||||
|
@ -70,10 +71,17 @@ void compilationPolicy_init() {
|
|||
CompilationPolicy::set_policy(new SimpleThresholdPolicy());
|
||||
#else
|
||||
Unimplemented();
|
||||
#endif
|
||||
break;
|
||||
case 3:
|
||||
#ifdef TIERED
|
||||
CompilationPolicy::set_policy(new AdvancedThresholdPolicy());
|
||||
#else
|
||||
Unimplemented();
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
fatal("CompilationPolicyChoice must be in the range: [0-2]");
|
||||
fatal("CompilationPolicyChoice must be in the range: [0-3]");
|
||||
}
|
||||
CompilationPolicy::policy()->initialize();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue