hotspot/src/cpu/zero/vm/stack_zero.hpp
changeset 35479 62c12ca7a45e
parent 35201 996db89f378e
child 46619 a3919f5e8d2b
equal deleted inserted replaced
35474:8333d76c7fee 35479:62c12ca7a45e
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright 2008, 2009, 2010 Red Hat, Inc.
     3  * Copyright 2008, 2009, 2010 Red Hat, Inc.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
    36 
    36 
    37  private:
    37  private:
    38   int _shadow_pages_size; // how much ABI stack must we keep free?
    38   int _shadow_pages_size; // how much ABI stack must we keep free?
    39 
    39 
    40  public:
    40  public:
    41   ZeroStack()
    41   ZeroStack();
    42     : _base(NULL), _top(NULL), _sp(NULL) {
       
    43     _shadow_pages_size = JavaThread::stack_shadow_zone_size();
       
    44   }
       
    45 
    42 
    46   bool needs_setup() const {
    43   bool needs_setup() const {
    47     return _base == NULL;
    44     return _base == NULL;
    48   }
    45   }
    49 
    46