Re: [fpc-pascal] Inclocked/declocked

2017-09-12 Thread Ryan Joseph
> On Sep 12, 2017, at 12:56 PM, Sven Barth via fpc-pascal > wrote: > > The Inc-/DecLocked routines perform a locked increment/decrement, so they're > blocking the memory bus for all cores (simply spoken), thus leading to a > higher CPU utilization. On e.g.

Re: [fpc-pascal] Inclocked/declocked

2017-09-12 Thread Mark Morgan Lloyd
On 11/09/17 19:45, Sven Barth via fpc-pascal wrote: I've rechecked and the thing is as follows:- the IncLocked call happens each time you assign a dynamic array toanother dynamic array variable or a by-value parameter (this alsoincludes being part of a record, but not a class instance or

Re: [fpc-pascal] Inclocked/declocked

2017-09-11 Thread Sven Barth via fpc-pascal
Am 12.09.2017 06:54 schrieb "Ryan Joseph" : > > > > On Sep 12, 2017, at 2:35 AM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > > > I've rechecked and the thing is as follows: > > - the IncLocked call happens each time you assign a dynamic array

Re: [fpc-pascal] Inclocked/declocked

2017-09-11 Thread Ryan Joseph
> On Sep 12, 2017, at 2:35 AM, Sven Barth via fpc-pascal > wrote: > > I've rechecked and the thing is as follows: > - the IncLocked call happens each time you assign a dynamic array to > another dynamic array variable or a by-value parameter (this also >

Re: [fpc-pascal] Inclocked/declocked

2017-09-11 Thread Sven Barth via fpc-pascal
On 11.09.2017 11:46, Ryan Joseph wrote: > >> On Sep 11, 2017, at 4:20 PM, Sven Barth via fpc-pascal >> wrote: >> >> They're used for the reference counter of the array (or string or >> interface). The reference counter changes each time you assign an array or