8029775: Solaris code cleanup

8033464: Linux code cleanup

Cleaned up warnings in solaris and linux specific os code.

Reviewed-by: coleenp, fparain, dcubed
This commit is contained in:
Gerald Thornbrugh 2014-02-06 14:28:35 -05:00 committed by Coleen Phillimore
parent aae536aad7
commit d3a85e73a7
5 changed files with 54 additions and 22 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2014, 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
@ -3000,7 +3000,9 @@ address get_stack_commited_bottom(address bottom, size_t size) {
unsigned char vec[1];
unsigned imin = 1, imax = pages + 1, imid;
int mincore_return_value;
int mincore_return_value = 0;
assert(imin < imax, "Unexpected page size");
while (imin < imax) {
imid = (imax + imin) / 2;