mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8003310: Enable -Wunused-function when compiling with gcc
Add the -Wunused-function flag and remove a number of unused functions. Reviewed-by: dholmes, coleenp, kvn
This commit is contained in:
parent
33f6dd2215
commit
eeb83733a6
29 changed files with 92 additions and 266 deletions
|
@ -2326,12 +2326,14 @@ struct Final_Reshape_Counts : public StackObj {
|
|||
int get_inner_loop_count() const { return _inner_loop_count; }
|
||||
};
|
||||
|
||||
#ifdef ASSERT
|
||||
static bool oop_offset_is_sane(const TypeInstPtr* tp) {
|
||||
ciInstanceKlass *k = tp->klass()->as_instance_klass();
|
||||
// Make sure the offset goes inside the instance layout.
|
||||
return k->contains_field_offset(tp->offset());
|
||||
// Note that OffsetBot and OffsetTop are very negative.
|
||||
}
|
||||
#endif
|
||||
|
||||
// Eliminate trivially redundant StoreCMs and accumulate their
|
||||
// precedence edges.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue