[GHC] #8254: confusing comment on allocate()

#8254: confusing comment on allocate() ------------------------------------+-------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: Documentation bug Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+-------------------------------------- {{{ /* ----------------------------------------------------------------------------- allocate() This allocates memory in the current thread - it is intended for use primarily from STG-land where we have a Capability. It is better than allocate() because it doesn't require taking the sm_mutex lock in the common case. Memory is allocated directly from the nursery if possible (but not from the current nursery block, so as not to interfere with Hp/HpLim). -------------------------------------------------------------------------- */ }}} Not sure what, if anything, `allocate()` is better than, but it's not `allocate()`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8254 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8254: confusing comment on allocate() --------------------------------------+------------------------------------ Reporter: rwbarton | Owner: Type: bug | Status: merge Priority: normal | Milestone: Component: Runtime System | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Documentation bug | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+------------------------------------ Changes (by thoughtpolice): * status: new => merge Comment: Heh. I got rid of this in d85044f6b201eae0a9e453b89c0433608e0778f0 - thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8254#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8254: confusing comment on allocate() --------------------------------------+------------------------------------ Reporter: rwbarton | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Runtime System | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Documentation bug | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+------------------------------------ Changes (by monoidal): * cc: simonmar (added) * status: merge => closed * resolution: => fixed Comment: Closing as fixed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8254#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8254: confusing comment on allocate() --------------------------------------+------------------------------------ Reporter: rwbarton | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Documentation bug | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+------------------------------------ Changes (by simonmar): * status: closed => new * resolution: fixed => Comment: d85044f6b201eae0a9e453b89c0433608e0778f0 was reverted. I'll fix. This appeared because allocate() used to be called allocateLocal(). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8254#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8254: confusing comment on allocate() --------------------------------------+------------------------------------ Reporter: rwbarton | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Runtime System | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Documentation bug | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+------------------------------------ Changes (by simonmar): * owner: => simonmar * milestone: => 7.8.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8254#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8254: confusing comment on allocate()
--------------------------------------+------------------------------------
Reporter: rwbarton | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone: 7.8.1
Component: Runtime System | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: Documentation bug | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
--------------------------------------+------------------------------------
Comment (by Simon Marlow

#8254: confusing comment on allocate() --------------------------------------+------------------------------------ Reporter: rwbarton | Owner: simonmar Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Runtime System | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Documentation bug | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+------------------------------------ Changes (by simonmar): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8254#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC