HTTP/1.1 -1 Read error in cache disk data: SuccessContent-Type: text/plain; charset="utf-8" Last-Modified: Sat, 22 Jan 2022 07:16:17 GMT Content-length: 2273 Connection: Close Proxy-Connection: Close X-Cache: HIT from web1.osuosl.org Server: ProxyTrack 0.5 (HTTrack 3.49.2) == Intro == The PMC Union is being deprecated, which means that any instances of PMC_int_val, etc need to disappear. This is a big job with several gotchas. == What Needs to Happen == The following PMCs should be straightforward to convert to ATTRs. If a PMC has a certain macro listed, only convert uses of that macro to ATTRs for the PMC. Other !UnionVal macros have depenency issues which are not yet resolvable. ||PMC||status|| ||!BigInt||fixed in r35664|| ||Continuation (PMC_pmc_val only)||removed in r35712|| ||Coroutine (PMC_pmc_val only)|||| ||Float||fixed in r35666|| ||!LexPad (PMC_pmc_val only)||fixed in r35669|| ||!LuaBoolean|||| ||!LuaThread|||| ||!MatchRange (PMC_int_val2 only)|||| ||!NameSpace (PMC_pmc_val only)|||| ||SArray||will be removed|| ||TQueue||fixed in r35653|| Allison [http://rt.perl.org/rt3/Ticket/Display.html?id=48014#txn-438628 explained in depth] how to convert code. Good example code can be found in src/pmc/exporter.pmc . == Inheritance == Because the PMC union struct is part of a PMC's internals, its use is affected by PMC inheritance. The following image shows the dependencies between all *core* PMCs. This does not include PMCs from HLLs. Because of these dependencies, all PMCs in a given dependency tree will have to be updated simultaneously. This only means that all instances of e.g. PMC_struct_val will have to be updated, not all instances of all PMC_x_val. [[Image(wiki:PMCUnionDeprecationTasklist:pmc_deps.png)]] == Notes == * src/gc/mark_sweep.c also uses PMC_struct_val in two places. This needs to be investigated and the data stored elsewhere. See TT #178. == Gotchas == * You may need to add certain VTABLE functions to the PMCs which you are updating. This applies not just to init and destroy, but also clone, morph and other functions that need to deal with the PMC's internal data. This is especially true if your PMC *doesn't have* an explicit clone VTABLE function. The absence of clone VTABLE function means that it's using the default clone, which works by copying the UnionVal. Such functions will *not* work properly for any PMCs which don't use the UnionVal. * Make sure that PMC_data is only used for the PMC-specific attributes struct.utput_like ( <<'INPUT