Ignore:
Timestamp:
Mar 11, 2010, 7:57:28 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

3rdparty/JavaScriptCore: Fixed: Stack blocks were free()d twice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/3rdparty/webkit/JavaScriptCore/runtime/MarkStack.h

    r561 r676  
    2121 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    2222 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    23  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2424 */
    2525
     
    3434    class JSGlobalData;
    3535    class Register;
    36    
     36
    3737    enum MarkSetProperties { MayContainNullValues, NoNullValues };
    38    
     38
    3939    class MarkStack : Noncopyable {
    4040    public:
     
    4949        ALWAYS_INLINE void append(JSValue);
    5050        void append(JSCell*);
    51        
     51
    5252        ALWAYS_INLINE void appendValues(Register* values, size_t count, MarkSetProperties properties = NoNullValues)
    5353        {
     
    134134                return m_data[--m_top];
    135135            }
    136            
     136
    137137            inline T& last()
    138138            {
     
    154154                if (size == m_allocated)
    155155                    return;
    156 #if PLATFORM(WIN_OS) || PLATFORM(SYMBIAN)
    157                 // We cannot release a part of a region with VirtualFree.  To get around this,
     156#if PLATFORM(WIN_OS) || PLATFORM(SYMBIAN)
     157                // We cannot release a part of a region with VirtualFree.  To get around this,
    158158                // we'll release the entire region and reallocate the size that we want.
    159159                releaseStack(m_data, m_allocated);
Note: See TracChangeset for help on using the changeset viewer.