mono.git
13 years agoFix some FIXMEs.
Zoltan Varga [Wed, 22 Sep 2010 20:31:18 +0000 (22:31 +0200)]
Fix some FIXMEs.

13 years agoAdd a free callback to sgen, use it to free our TLS data.
Zoltan Varga [Wed, 22 Sep 2010 19:18:59 +0000 (21:18 +0200)]
Add a free callback to sgen, use it to free our TLS data.

13 years agoOptimize the size of TlsData.
Zoltan Varga [Wed, 22 Sep 2010 15:52:44 +0000 (17:52 +0200)]
Optimize the size of TlsData.

13 years agoOptimize GC map memory usage a bit more, add more memory usage stats.
Zoltan Varga [Wed, 22 Sep 2010 15:42:14 +0000 (17:42 +0200)]
Optimize GC map memory usage a bit more, add more memory usage stats.

13 years agoUpdate some comments.
Zoltan Varga [Wed, 22 Sep 2010 01:40:07 +0000 (03:40 +0200)]
Update some comments.

13 years agoRename StackSlotType to GCSlotType.
Zoltan Varga [Wed, 22 Sep 2010 01:37:37 +0000 (03:37 +0200)]
Rename StackSlotType to GCSlotType.

13 years agoAdd the conservative-stack-mark option to the MONO_GC_DEBUG help.
Zoltan Varga [Wed, 22 Sep 2010 01:31:01 +0000 (03:31 +0200)]
Add the conservative-stack-mark option to the MONO_GC_DEBUG help.

13 years agoRefactor mini_gc_create_gc_map () into smaller functions.
Zoltan Varga [Wed, 22 Sep 2010 00:36:38 +0000 (02:36 +0200)]
Refactor mini_gc_create_gc_map () into smaller functions.

13 years agoImplement precise scanning of param area slots. Fix lots of bugs.
Zoltan Varga [Wed, 22 Sep 2010 00:26:08 +0000 (02:26 +0200)]
Implement precise scanning of param area slots. Fix lots of bugs.

13 years agoDon't treat the saved ebp slot as pinned. Fix support for noref structs smaller than...
Zoltan Varga [Tue, 21 Sep 2010 20:00:52 +0000 (22:00 +0200)]
Don't treat the saved ebp slot as pinned. Fix support for noref structs smaller than a pointer. Don't treat 'this' in gshared methods as pinned. Fix the handling of volatile variables.

13 years agoFix order of entries in GCEncodedMap.
Zoltan Varga [Mon, 20 Sep 2010 22:13:48 +0000 (00:13 +0200)]
Fix order of entries in GCEncodedMap.

13 years agoUpdate comments.
Zoltan Varga [Mon, 20 Sep 2010 22:12:32 +0000 (00:12 +0200)]
Update comments.

13 years agoSplit the marking function into two functions, save information during the conservati...
Zoltan Varga [Mon, 20 Sep 2010 22:00:26 +0000 (00:00 +0200)]
Split the marking function into two functions, save information during the conservative pass to avoid doing a stack walk during the precise pass.

13 years agoOmit empty columns from the register bitmaps.
Zoltan Varga [Mon, 20 Sep 2010 01:05:24 +0000 (03:05 +0200)]
Omit empty columns from the register bitmaps.

13 years agoFix a typo.
Zoltan Varga [Mon, 20 Sep 2010 00:44:28 +0000 (02:44 +0200)]
Fix a typo.

13 years agoEmbed the callsite table after the gc map.
Zoltan Varga [Mon, 20 Sep 2010 00:06:53 +0000 (02:06 +0200)]
Embed the callsite table after the gc map.

13 years agoImplement compression of the fixed fields in the GCMap struct.
Zoltan Varga [Sun, 19 Sep 2010 19:57:48 +0000 (21:57 +0200)]
Implement compression of the fixed fields in the GCMap struct.

13 years agoCompute the GC bitmap offsets instead of storing them inside the GCMap structure...
Zoltan Varga [Sun, 19 Sep 2010 13:24:53 +0000 (15:24 +0200)]
Compute the GC bitmap offsets instead of storing them inside the GCMap structure, to reduce its size.

13 years agoFirst pass at reducing the memory usage of GC Maps.
Zoltan Varga [Sat, 18 Sep 2010 19:49:13 +0000 (21:49 +0200)]
First pass at reducing the memory usage of GC Maps.
Remove constants fields, embed the bitmap array after the structure, use
offsets into the bitmap array instead of pointers, encode the callsites
table using i8/i16 if possible.

13 years agoRewrite everything. Instead of computing liveness intervals, compute the set of live...
Zoltan Varga [Sat, 18 Sep 2010 12:37:49 +0000 (14:37 +0200)]
Rewrite everything. Instead of computing liveness intervals, compute the set of live variables at each call site, and use this to create gc bitmaps which are only precise at call sites.

13 years agoTrim starting and ending NOREF columns from the GC bitmaps.
Zoltan Varga [Fri, 17 Sep 2010 13:12:35 +0000 (15:12 +0200)]
Trim starting and ending NOREF columns from the GC bitmaps.

13 years agoMerge process_locals () and process_arguments ().
Zoltan Varga [Fri, 17 Sep 2010 12:34:42 +0000 (14:34 +0200)]
Merge process_locals () and process_arguments ().

13 years agoDon't treat 'this' as byref. Don't treat ref regs as pinned.
Zoltan Varga [Fri, 17 Sep 2010 03:51:10 +0000 (05:51 +0200)]
Don't treat 'this' as byref. Don't treat ref regs as pinned.

13 years agoAdd a new regbank for spill slots holding managed pointers. Treat those as PIN.
Zoltan Varga [Fri, 17 Sep 2010 01:32:39 +0000 (03:32 +0200)]
Add a new regbank for spill slots holding managed pointers. Treat those as PIN.
Make LDELEMA return an MP.

13 years agoGenerate liveness info for non-ref variables allocated to registers.
Zoltan Varga [Thu, 16 Sep 2010 14:59:58 +0000 (16:59 +0200)]
Generate liveness info for non-ref variables allocated to registers.

13 years agoUpdate comments.
Zoltan Varga [Thu, 16 Sep 2010 12:25:03 +0000 (14:25 +0200)]
Update comments.

13 years agoImplement precise scanning of registers by scanning the stack slots where they are...
Zoltan Varga [Thu, 16 Sep 2010 12:11:44 +0000 (14:11 +0200)]
Implement precise scanning of registers by scanning the stack slots where they are saved.

13 years agoMark some LMF fields as NOREF.
Zoltan Varga [Wed, 15 Sep 2010 23:57:56 +0000 (01:57 +0200)]
Mark some LMF fields as NOREF.

13 years agoMark non-ref spill slots as NOREF. Mark copies of ref vregs as ref during SSA constru...
Zoltan Varga [Wed, 15 Sep 2010 04:40:24 +0000 (06:40 +0200)]
Mark non-ref spill slots as NOREF. Mark copies of ref vregs as ref during SSA construction. Treat 'this' as a ref.

13 years agoAdd support for GC tracking of some spill slots.
Zoltan Varga [Tue, 14 Sep 2010 22:19:24 +0000 (00:19 +0200)]
Add support for GC tracking of some spill slots.

13 years agoMark stack slots allocated to dead locals as noref.
Zoltan Varga [Tue, 14 Sep 2010 19:39:10 +0000 (21:39 +0200)]
Mark stack slots allocated to dead locals as noref.

13 years agoRename locals_start/end to frame_start/end.
Zoltan Varga [Tue, 14 Sep 2010 06:33:57 +0000 (08:33 +0200)]
Rename locals_start/end to frame_start/end.

13 years agoAdd more logging code.
Zoltan Varga [Tue, 14 Sep 2010 05:54:00 +0000 (07:54 +0200)]
Add more logging code.

13 years agoAdd infrastructure for marking the whole frame, not just the locals. Mark arguments...
Zoltan Varga [Tue, 14 Sep 2010 04:19:47 +0000 (06:19 +0200)]
Add infrastructure for marking the whole frame, not just the locals. Mark arguments plus a few stack slots initialized in the prolog precisely.

13 years agoUse mono_find_jit_info_ext ().
Zoltan Varga [Mon, 13 Sep 2010 22:00:25 +0000 (00:00 +0200)]
Use mono_find_jit_info_ext ().

13 years agoAlign 'nslots' properly.
Zoltan Varga [Mon, 13 Sep 2010 21:09:27 +0000 (23:09 +0200)]
Align 'nslots' properly.

13 years agoFix an uninitialized memory bug.
Zoltan Varga [Mon, 13 Sep 2010 21:08:18 +0000 (23:08 +0200)]
Fix an uninitialized memory bug.

13 years agoFix the computation of the stack space statistics.
Zoltan Varga [Mon, 13 Sep 2010 20:42:49 +0000 (22:42 +0200)]
Fix the computation of the stack space statistics.

13 years agoMark only the ref slots of a vtype with uncertain liveness as pinned.
Zoltan Varga [Mon, 13 Sep 2010 17:47:20 +0000 (19:47 +0200)]
Mark only the ref slots of a vtype with uncertain liveness as pinned.

13 years agoUse two bitmaps instead of the 'slots' array, this makes it possible for a slot to...
Zoltan Varga [Mon, 13 Sep 2010 17:34:51 +0000 (19:34 +0200)]
Use two bitmaps instead of the 'slots' array, this makes it possible for a slot to start out as 'pin' and later change to 'ref' after it was defined.

13 years agoCompute approximate liveness intervals for vtypes and volatile variables.
Zoltan Varga [Sat, 11 Sep 2010 21:00:30 +0000 (23:00 +0200)]
Compute approximate liveness intervals for vtypes and volatile variables.

13 years agoAdd infrastructure for marking vregs as holding a GC refs. Use this to avoid pinning...
Zoltan Varga [Thu, 9 Sep 2010 18:34:59 +0000 (20:34 +0200)]
Add infrastructure for marking vregs as holding a GC refs. Use this to avoid pinning variables of type I. Add more GC map stats.

13 years agoAdd a test for JIT temporaries.
Zoltan Varga [Thu, 9 Sep 2010 03:38:27 +0000 (05:38 +0200)]
Add a test for JIT temporaries.

13 years agoDisable GC maps for methods with causes for now.
Zoltan Varga [Thu, 9 Sep 2010 02:39:34 +0000 (04:39 +0200)]
Disable GC maps for methods with causes for now.

13 years agoAdd a [NotWorking] test for liveness + finally clauses.
Zoltan Varga [Thu, 9 Sep 2010 01:21:06 +0000 (03:21 +0200)]
Add a [NotWorking] test for liveness + finally clauses.

13 years agoDon't treat U/PTR as a managed ref.
Zoltan Varga [Wed, 8 Sep 2010 01:46:10 +0000 (03:46 +0200)]
Don't treat U/PTR as a managed ref.

13 years agoAdd further comments/fixmes.
Zoltan Varga [Wed, 8 Sep 2010 01:37:42 +0000 (03:37 +0200)]
Add further comments/fixmes.

13 years agoReally fix the computation of statistics.
Zoltan Varga [Wed, 8 Sep 2010 01:21:43 +0000 (03:21 +0200)]
Really fix the computation of statistics.

13 years agoUpdate 'Problems' section.
Zoltan Varga [Wed, 8 Sep 2010 01:17:23 +0000 (03:17 +0200)]
Update 'Problems' section.

13 years agoCompute the stack scanning stats correctly, handle threads without a saved
Zoltan Varga [Wed, 8 Sep 2010 01:12:18 +0000 (03:12 +0200)]
Compute the stack scanning stats correctly, handle threads without a saved
context.

13 years agoUpdate comments.
Zoltan Varga [Tue, 7 Sep 2010 22:50:11 +0000 (00:50 +0200)]
Update comments.

13 years agoStore the liveness information in a two dimensional bitmap in the GC map. Fix a few...
Zoltan Varga [Tue, 7 Sep 2010 22:45:08 +0000 (00:45 +0200)]
Store the liveness information in a two dimensional bitmap in the GC map. Fix a few problems in the liveness calculation. Turn on precise stack scanning by default.

13 years agoAdd a MONO_INST_GC_TRACK inst flag to mark variables needing GC tracking, use it...
Zoltan Varga [Tue, 7 Sep 2010 03:44:19 +0000 (05:44 +0200)]
Add a MONO_INST_GC_TRACK inst flag to mark variables needing GC tracking, use it in various places to avoid inserting and processing GC_LIVENESS instructions.

13 years agoAdd a modified liveness analysis pass to compute precise liveness intervals for varia...
Zoltan Varga [Mon, 6 Sep 2010 23:42:13 +0000 (01:42 +0200)]
Add a modified liveness analysis pass to compute precise liveness intervals for variables which need GC tracking.

13 years agoOngoing work.
Zoltan Varga [Mon, 6 Sep 2010 01:10:15 +0000 (03:10 +0200)]
Ongoing work.

13 years ago[mscorlib/getfolderpath] Special-case MacOS X.
Miguel de Icaza [Mon, 3 Jan 2011 14:02:34 +0000 (09:02 -0500)]
[mscorlib/getfolderpath] Special-case MacOS X.

The following changes were done to specially support OSX:
* MyMusic on OSX is ~/Music
* MyPictures on OSX is ~/Pictures
* Fonts on OSX is ~/Library/Fonts
* Favorites on OSX is ~/Library/Favorites
* ProgramFiles on OSX is /Applications
* InternetCache on OSX is ~/Library/Caches

The documentation has been updated accordingly.

13 years ago[mscorlib] New Path.Combine methods are exposed internally on pre 4.0 profiles
Miguel de Icaza [Mon, 3 Jan 2011 13:50:53 +0000 (08:50 -0500)]
[mscorlib] New Path.Combine methods are exposed internally on pre 4.0 profiles

This allows our mscorlib code to be cleaner

13 years ago[mscorlib/getfolderpath] Remove MonoTODO
Miguel de Icaza [Mon, 3 Jan 2011 13:41:33 +0000 (08:41 -0500)]
[mscorlib/getfolderpath] Remove MonoTODO

13 years ago[GetFolderPath] Handful of .NET 4 changes
Miguel de Icaza [Mon, 3 Jan 2011 13:37:31 +0000 (08:37 -0500)]
[GetFolderPath] Handful of .NET 4 changes

* Actually use the SpecialFolderPathOptions where we need them
  -> Create is acknowledged
  -> DoNotVerify is ignored, as Mono historically did not throw an
     exception on missing directories.
* Rename InternalGetFolderPath to UnixGetFolderPath as this is what it is.
* Fix existing references to the code
* Fix indentation in routine that was never properly formatted (ReadXdgUserDir)

13 years ago[mscorlib] inside mscorlib Platform's value will be correct for OSX, but userland...
Miguel de Icaza [Mon, 3 Jan 2011 13:10:32 +0000 (08:10 -0500)]
[mscorlib] inside mscorlib Platform's value will be correct for OSX, but userland still gets Unix.

This change allows mscorlib to get the real PlatformID, to split code between
OSX and general Unix.   We continue to expose the value 4 (Unix) to usercode
as changing this might break user applications.

13 years ago[corlib] Fix for bug #659061. Adjust size of the last group when formatting numbers...
Marek Habersack [Mon, 3 Jan 2011 12:12:58 +0000 (13:12 +0100)]
[corlib] Fix for bug #659061. Adjust size of the last group when formatting numbers with group separators.

When the number format includes several groups make sure that the last (leftmost) one is adjusted
so that its width is not larger than the number of remaining characters.

13 years ago.gitignore.
Zoltan Varga [Mon, 3 Jan 2011 11:57:16 +0000 (12:57 +0100)]
.gitignore.

13 years agoUse a more compact encoding for references to icall/ptr-to-struct/struct-to-ptr
Zoltan Varga [Sun, 26 Dec 2010 08:00:03 +0000 (09:00 +0100)]
Use a more compact encoding for references to icall/ptr-to-struct/struct-to-ptr
wrappers, this saves about 50k from the full-aot mscorlib image size.

13 years agoFix the fullaotcheck target.
Zoltan Varga [Sun, 26 Dec 2010 07:59:47 +0000 (08:59 +0100)]
Fix the fullaotcheck target.

13 years agoAdd unit tests for bug 661753.
Thomas Goldstein [Sat, 1 Jan 2011 12:35:27 +0000 (04:35 -0800)]
Add unit tests for bug 661753.

13 years agoAdd missing properties that should be copied when cloning a TreeNode. Fixes bug 661753.
Thomas Goldstein [Sat, 1 Jan 2011 12:28:55 +0000 (04:28 -0800)]
Add missing properties that should be copied when cloning a TreeNode. Fixes bug 661753.

13 years ago[LINQ] Fix non generic AsQueryable issue #661462
Jb Evain [Thu, 30 Dec 2010 15:21:40 +0000 (16:21 +0100)]
[LINQ] Fix non generic AsQueryable issue #661462

13 years agoAdd test for bug #661462
Jb Evain [Thu, 30 Dec 2010 15:20:44 +0000 (16:20 +0100)]
Add test for bug #661462

13 years agoUpdate for moving \mcs to \mono\mcs.
Jonathan Pobst [Wed, 29 Dec 2010 22:05:21 +0000 (16:05 -0600)]
Update for moving \mcs to \mono\mcs.

13 years agomono.dll -> mono-2.0.dll
Jonathan Pobst [Wed, 29 Dec 2010 21:19:57 +0000 (15:19 -0600)]
mono.dll -> mono-2.0.dll

13 years agoDo previous SKEL_DIRECTORY change for Release profile as well.
Jonathan Pobst [Wed, 29 Dec 2010 21:04:17 +0000 (15:04 -0600)]
Do previous SKEL_DIRECTORY change for Release profile as well.

13 years agoEscape SKEL_DIRECTORY define.
Jonathan Pobst [Wed, 29 Dec 2010 20:58:22 +0000 (14:58 -0600)]
Escape SKEL_DIRECTORY define.

13 years agoAll the other vcxproj files seem to be build to $(Platform) instead of $(Platform...
Jonathan Pobst [Wed, 29 Dec 2010 20:45:23 +0000 (14:45 -0600)]
All the other vcxproj files seem to be build to $(Platform) instead of $(Platform)_$(Configuration), so make this one match.

13 years agoRemove obsolete files from MSVC build.
Jonathan Pobst [Wed, 29 Dec 2010 20:39:32 +0000 (14:39 -0600)]
Remove obsolete files from MSVC build.

13 years agoBuild 'eglib' in the Win32|Release profile.
Jonathan Pobst [Wed, 29 Dec 2010 20:23:31 +0000 (14:23 -0600)]
Build 'eglib' in the Win32|Release profile.

13 years ago[monodoc] Use points instead of relative-sizing, so that we render the same on web...
Miguel de Icaza [Wed, 29 Dec 2010 19:56:15 +0000 (14:56 -0500)]
[monodoc] Use points instead of relative-sizing, so that we render the same on web browsers and on WebKit

13 years agoAnother missing System.Windows.Forms reference
Marek Safar [Wed, 29 Dec 2010 17:50:39 +0000 (17:50 +0000)]
Another missing System.Windows.Forms reference

13 years agoUpdate issues error list
Marek Safar [Wed, 29 Dec 2010 17:50:15 +0000 (17:50 +0000)]
Update issues error list

13 years agoImplements checking of referenced members with missing references
Marek Safar [Wed, 29 Dec 2010 17:16:40 +0000 (17:16 +0000)]
Implements checking of referenced members with missing references

13 years agoAdd few more missing references
Marek Safar [Wed, 29 Dec 2010 17:03:17 +0000 (17:03 +0000)]
Add few more missing references

13 years agoRemoved 1.1 version of Mono.Data.Sqlite
Marek Safar [Wed, 29 Dec 2010 16:50:23 +0000 (16:50 +0000)]
Removed 1.1 version of Mono.Data.Sqlite

13 years agoFixed Mono.Data.Sqlite dependencies
Marek Safar [Wed, 29 Dec 2010 16:46:05 +0000 (16:46 +0000)]
Fixed Mono.Data.Sqlite dependencies

13 years agoBuild culevel in basic as well
Marek Safar [Wed, 29 Dec 2010 14:16:56 +0000 (14:16 +0000)]
Build culevel in basic as well

13 years ago[661642] Fixed v4 resgen compilation
Marek Safar [Wed, 29 Dec 2010 12:56:54 +0000 (12:56 +0000)]
[661642] Fixed v4 resgen compilation

13 years agoRemove no longer used BOOTSTRAP conditionals
Marek Safar [Wed, 29 Dec 2010 12:41:12 +0000 (12:41 +0000)]
Remove no longer used BOOTSTRAP conditionals

13 years agoRemove no longer used bootstrap profiles
Marek Safar [Wed, 29 Dec 2010 09:58:18 +0000 (09:58 +0000)]
Remove no longer used bootstrap profiles

13 years agoNew tests
Marek Safar [Wed, 29 Dec 2010 09:14:15 +0000 (09:14 +0000)]
New tests

13 years agoRevert accidental patch
Miguel de Icaza [Wed, 29 Dec 2010 01:57:33 +0000 (20:57 -0500)]
Revert accidental patch

13 years ago[monodoc] Update the stylesheets to use Jonathan Pobst's UI design.
Miguel de Icaza [Wed, 29 Dec 2010 01:54:39 +0000 (20:54 -0500)]
[monodoc] Update the stylesheets to use Jonathan Pobst's UI design.

This is a temporary measure, as we only use 1/10th of Jonathan's
icons and style, but will do while we get Kipunji deployed.

The major benefit is that the native Linux and MacOS Monodoc
clients when using Gecko or WebKit can render something that is not
hideous.

13 years ago[monodoc] Header no longer needed, we now keep it on the top
Miguel de Icaza [Wed, 29 Dec 2010 01:52:10 +0000 (20:52 -0500)]
[monodoc] Header no longer needed, we now keep it on the top

13 years ago[monodoc] Fix the root display once and for all: web does not do editing
Miguel de Icaza [Tue, 28 Dec 2010 19:05:28 +0000 (14:05 -0500)]
[monodoc] Fix the root display once and for all: web does not do editing

13 years agoUpdate README
Miguel de Icaza [Thu, 23 Dec 2010 14:53:49 +0000 (09:53 -0500)]
Update README

13 years agoActually we have almost what we need on mobile profiles.
Atsushi Eno [Tue, 28 Dec 2010 13:02:08 +0000 (22:02 +0900)]
Actually we have almost what we need on mobile profiles.

13 years agoUpdate sdb API documentation.
Zoltan Varga [Sun, 26 Dec 2010 00:10:10 +0000 (01:10 +0100)]
Update sdb API documentation.

13 years agoPartially revert 759ebbb3df836e82fac2443dea23659ede972ce7: pass the 'err'
Zoltan Varga [Fri, 24 Dec 2010 14:06:40 +0000 (15:06 +0100)]
Partially revert 759ebbb3df836e82fac2443dea23659ede972ce7: pass the 'err'
argument to mono_dl_open () again. Fixes #661356.

13 years agoRemove an obsolete comment.
Zoltan Varga [Fri, 24 Dec 2010 04:28:59 +0000 (05:28 +0100)]
Remove an obsolete comment.

13 years agoFixed wrong AttributeUsageAttribute
Marek Safar [Thu, 23 Dec 2010 16:13:07 +0000 (16:13 +0000)]
Fixed wrong AttributeUsageAttribute

13 years agoImplement missing v4 attribute types
Marek Safar [Thu, 23 Dec 2010 16:03:19 +0000 (16:03 +0000)]
Implement missing v4 attribute types

13 years agoAdd new tests
Marek Safar [Thu, 23 Dec 2010 14:11:06 +0000 (14:11 +0000)]
Add new tests

13 years agoUpdate mono-api-info to work with latest cecil. Updated to latest SL4
Marek Safar [Thu, 23 Dec 2010 13:55:51 +0000 (13:55 +0000)]
Update mono-api-info to work with latest cecil. Updated to latest SL4