Slashdot Mirror


User: chairthrower

chairthrower's activity in the archive.

Stories
0
Comments
2
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2

  1. Re:guard pages, bit masks, and so on: better on Multiple FLAC Vulnerabilities Affect Every OS · · Score: 1

    I really like the suggestion - you have something that is quite a discrete operation - you map a page of memory and then start a thread and do the operation and let it run in an almost sandbox. sounds really good for things like video decoding or packet protocol decoding where sanity checking does become expensive (ie video means lots of matricies and index checking is expensive). Its almost like spawning a seperate process (a la microkernel) to run the job except a lot more lightweight.

    Is there any equivalent to mmap, mprotect and masking in windows ?

  2. Re:Reference counting on C# Memory Leak Torpedoed Princeton's DARPA Chances · · Score: 2, Interesting

    Can you show me any document that indicates that c# (CLR) objects use reference counting. I find it extremely odd that your comment is moderated insightful.

    MS used gc rather than reference counting in CLR to get around the problem of circular references so prevenlant in COM/ DCOM etc.

    Also this is a classic problem in c# - the event handler holds on to the reference - so you need a dispose() to handle exceptions and explicit removal of refereces. but having recently tried to do something similar in c++ using various combinations of boost::bind siglib and refernce counted pointers its not as a trivial problem to solve in any language.

    for those who say just use a weak reference when you need to for multicast delegate behaviour i would like to see their c++ template code they use to parameterise this kind of functionality. Really I am still looking for a good solution to good event handling in c++ that works well in multithreaded environments, and takes a reasonably modern approach to memory (ie RAII).