Skip to content

Commit 13258b2

Browse files
committed
Changes based on review.
1 parent 2de367d commit 13258b2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

doc/user/compatibility.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,11 @@ disabled where we dynamically detect that they probably won't be used. See the
167167

168168
#### `VALUE` is a pointer
169169

170-
In TruffleRuby `VALUE` is a pointer rather than a 64 bit integer
171-
type. This means that `switch` statements cannot be done using a raw
172-
`VALUE` as they can with MRI
170+
In TruffleRuby `VALUE` is a pointer type (`void *`) rather than a
171+
integer type (`long`). This means that `switch` statements cannot be
172+
done using a raw `VALUE` as they can with MRI. You can normally
173+
replace any `switch` statement with `if` statements with little
174+
difficulty if required.
173175

174176
#### Identifiers may be macros or functions
175177

@@ -188,10 +190,10 @@ fixed, please report these cases.
188190

189191
The `mark` function of `RDATA` and `RTYPEDDATA` is not called during
190192
garbage collection. Instead we simulate this by caching information
191-
about objects as they are assigned to structs, and periodically
192-
running all mark functions when the cache has become full to represent
193-
those object relationships in a way that the our garbage collector
194-
will understand.
193+
about objects as they are assigned to structs, and periodically run
194+
all mark functions when the cache has become full to represent those
195+
object relationships in a way that the our garbage collector will
196+
understand. The process should behave identically to MRI.
195197

196198
## Compatibility with JRuby
197199

0 commit comments

Comments
 (0)