Skip to content

Commit 99d7185

Browse files
committed
8340144: C1: remove unused Compilation::_max_spills
Reviewed-by: thartmann, shade
1 parent 418bb42 commit 99d7185

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/hotspot/share/c1/c1_Compilation.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -274,8 +274,6 @@ void Compilation::emit_lir() {
274274
// Assign physical registers to LIR operands using a linear scan algorithm.
275275
allocator->do_linear_scan();
276276
CHECK_BAILOUT();
277-
278-
_max_spills = allocator->max_spills();
279277
}
280278

281279
if (BailoutAfterLIR) {
@@ -568,7 +566,6 @@ Compilation::Compilation(AbstractCompiler* compiler, ciEnv* env, ciMethod* metho
568566
, _method(method)
569567
, _osr_bci(osr_bci)
570568
, _hir(nullptr)
571-
, _max_spills(-1)
572569
, _frame_map(nullptr)
573570
, _masm(nullptr)
574571
, _has_exception_handlers(false)

src/hotspot/share/c1/c1_Compilation.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -73,7 +73,6 @@ class Compilation: public StackObj {
7373
ciMethod* _method;
7474
int _osr_bci;
7575
IR* _hir;
76-
int _max_spills;
7776
FrameMap* _frame_map;
7877
C1_MacroAssembler* _masm;
7978
bool _has_exception_handlers;
@@ -151,7 +150,6 @@ class Compilation: public StackObj {
151150
int osr_bci() const { return _osr_bci; }
152151
bool is_osr_compile() const { return osr_bci() >= 0; }
153152
IR* hir() const { return _hir; }
154-
int max_spills() const { return _max_spills; }
155153
FrameMap* frame_map() const { return _frame_map; }
156154
CodeBuffer* code() { return &_code; }
157155
C1_MacroAssembler* masm() const { return _masm; }

0 commit comments

Comments
 (0)